home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="EUC-KR" ?>
- <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
- <?xml-stylesheet type="text/xsl" href="./style/manual.ko.xsl"?>
- <!-- English Revision: 1.1.2.7 -->
-
- <!--
- Copyright 2003-2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
- <manualpage metafile="custom-error.xml.meta">
-
- <title>╗τ┐δ└┌┴ñ└╟ ┐└╖∙ └└┤Σ</title>
-
- <summary>
- <p>└Ñ╕╢╜║┼═┤┬ ┐└╖∙│¬ ╣«┴ª░í ╣▀╗²╟▀└╗╢º ╛╞╞──í└╟ └└┤Σ└╗
- ╝│┴ñ╟╥ ╝÷ └╓┤┘.</p>
-
- <p>╝¡╣÷░í ┐└╖∙│¬ ╣«┴ª╕ª ╣▀░▀╟▀└╗╢º ║╕│╛ ╗τ┐δ└┌┴ñ└╟ └└┤Σ└╗
- ┴ñ└╟╟╥ ╝÷ └╓┤┘.</p>
-
- <p>╜║┼⌐╕│╞«░í ┴╫└║ ░µ┐∞ "500 Server Error" └└┤Σ ┤δ╜┼ ╗τ┐δ└┌┐í░╘
- ┤⌡ ─ú▒┘╟╤ ╣«▒╕╕ª ╗τ┐δ╟╧░┼│¬ ┤┘╕Ñ (░░└║ ╗τ└╠╞«│¬ ┐▄║╬ ╗τ└╠╞«└╟)
- URL╖╬ ╕«┤┘└╠╖║╝╟└╗ ╟╥ ╝÷ └╓┤┘.</p>
- </summary>
-
- <section id="behavior">
- <title>╟α╡┐</title>
-
- <section>
- <title>└╠└ⁿ ╟α╡┐</title>
-
- <p>NCSA httpd 1.3└║ ╗τ┐δ└┌┐í░╘ ╣½└╟╣╠╟╧░φ ┴÷╖τ╟╤ ┐└╖∙╣«└╗
- ║╕│┬┤┘. ╣«┴ª░í ╣▀╗²╟╤ └╠└»╕ª ╖╬▒╫┐í │▓▒µ ╝÷╡╡ ╛°╛·┤┘.</p>
- </section>
-
- <section>
- <title>╗⌡╖╬┐ε ╟α╡┐</title>
-
- <p>╝¡╣÷┤┬ ┤┘└╜░· ░░└║ └╧└╗ ╟╥ ╝÷ └╓┤┘:</p>
-
- <ol>
- <li>NCSA└╟ ░φ┴ñ╡╚ ╣«▒╕ ┤δ╜┼ ┤┘╕Ñ ╣«▒╕╕ª ║╕┐⌐┴╓░┼│¬</li>
-
- <li>░░└║ ╗τ└╠╞«└╟ URL╖╬ ╕«┤┘└╠╖║╝╟╟╧░┼│¬</li>
-
- <li>┐▄║╬ ╗τ└╠╞«└╟ URL╖╬ ╕«┤┘└╠╖║╝╟╟╤┤┘.</li>
- </ol>
-
- <p>┤┘╕Ñ ╗τ└╠╞«└╟ URL╖╬ ╕«┤┘└╠╖║╝╟╟╧┤┬ ░═└╠ └»┐δ╟╥ ╝÷ └╓┴÷╕╕,
- └╠ ░µ┐∞ ╣«┴ª╕ª ╝│╕φ╟╧░┼│¬ ╖╬▒╫╟╧┤┬╡Ñ ╟╩┐Σ╟╤ ┴ñ║╕┴▀ └╧║╬╕╕
- └ⁿ┤▐╡╚┤┘.</p>
-
- <p>┐└╖∙┐í ┤δ╟╤ ┴ñ║╕╕ª └ⁿ┤▐╟╧▒Γ└º╟╪ ╛╞╞──í┤┬ CGI╜─└╟ ╗⌡╖╬┐ε
- ╚»░µ║»╝÷╕ª ┴ñ└╟╟╤┤┘:</p>
-
- <example>
- REDIRECT_HTTP_ACCEPT=*/*, image/gif, image/x-xbitmap,
- image/jpeg<br />
- REDIRECT_HTTP_USER_AGENT=Mozilla/1.1b2 (X11; I; HP-UX A.09.05
- 9000/712)<br />
- REDIRECT_PATH=.:/bin:/usr/local/bin:/etc<br />
- REDIRECT_QUERY_STRING=<br />
- REDIRECT_REMOTE_ADDR=121.345.78.123<br />
- REDIRECT_REMOTE_HOST=ooh.ahhh.com<br />
- REDIRECT_SERVER_NAME=crash.bang.edu<br />
- REDIRECT_SERVER_PORT=80<br />
- REDIRECT_SERVER_SOFTWARE=Apache/0.8.15<br />
- REDIRECT_URL=/cgi-bin/buggy.pl
- </example>
-
- <p><code>REDIRECT_</code> ┴ó╡╬╗τ┐í ┴╓╕±╟╧╢≤.</p>
-
- <p>├╓╝╥╟╤ <code>REDIRECT_URL</code>░·
- <code>REDIRECT_QUERY_STRING</code>└║ (cgi-script│¬
- cgi-include└╧) ╗⌡ URL╖╬ │╤░▄┴°┤┘. ┤┘╕Ñ ║»╝÷┤┬ ┐└╖∙░í
- ╣▀╗²╟╧▒Γ └╠└ⁿ┐í <transnote>└╠╕º┐í╝¡ <code>REDIRECT_</code>╕ª
- ╗½ ╚»░µ║»╝÷░í</transnote> ┴╕└τ╟╤ ░µ┐∞┐í╕╕ └╓┤┘.
- <directive module="core">ErrorDocument</directive>░í
- <em>┐▄║╬╖╬</em> (░░└║ ╝¡╣÷╢≤╡╡ <code>http:</code>┐═
- ░░└║ ╜║┼┤(scheme)└╕╖╬ ╜├└█╟╤┤┘╕Θ) ╕«┤┘└╠╖║╝╟╟╤┤┘╕Θ
- └╠┴▀ ╛ε╢▓ ░═╡╡ ╝│┴ñ╡╟┴÷ <strong>╛╩┤┬┤┘</strong>.</p>
- </section>
- </section>
-
- <section id="configuration">
- <title>╝│┴ñ</title>
-
- <p><directive module="core">AllowOverride</directive>░í
- └√└²╚≈ ╝│┴ñ╡╟╛·┤┘╕Θ .htaccess ╞─└╧┐í╝¡
- <directive module="core">ErrorDocument</directive>╕ª ╗τ┐δ╟╥
- ╝÷ └╓┤┘.</p>
-
- <p>┤┘└╜└║ ┐╣└╠┤┘...</p>
-
- <example>
- ErrorDocument 500 /cgi-bin/crash-recover <br />
- ErrorDocument 500 "Sorry, our script crashed. Oh dear" <br />
- ErrorDocument 500 http://xxx/ <br />
- ErrorDocument 404 /Lame_excuses/not_found.html <br />
- ErrorDocument 401 /Subscription/how_to_subscribe.html
- </example>
-
- <p>╣«╣²└║,</p>
-
- <example>
- ErrorDocument <3-digit-code> <action>
- </example>
-
- <p>░í┤╔╟╤ action└║,</p>
-
- <ol>
- <li>├Γ╖┬╟╥ ╣«▒╕. ╡√┐╚╟Ñ (")╕ª ╣«▒╕ ╛╒┐í ║┘└╬┤┘. ╡┌┐í │¬┐└┤┬
- ╡√┐╚╟Ñ┤┬ ├Γ╖┬╡╚┤┘. <em>┴╓└╟: ╛╒┐í ║┘└║ ╡√┐╚╟Ñ (")┤┬ ├Γ╖┬╡╟┴÷
- ╛╩┤┬┤┘.</em></li>
-
- <li>╕«┤┘└╠╖║╝╟╟╥ ┐▄║╬ URL.</li>
-
- <li>╕«┤┘└╠╖║╝╟╟╥ │╗║╬ URL.</li>
- </ol>
- </section>
-
- <section id="custom">
- <title>╗τ┐δ└┌┴ñ└╟ ┐└╖∙ └└┤Σ░· ╕«┤┘└╠╖║╝╟</title>
-
- <p>URL╖╬ ╕«┤┘└╠╖║╝╟╟╧┤┬ ╛╞╞──í ╟α╡┐└║
- ╜║┼⌐╕│╞«/server-include┐í ╚»░µ║»╝÷╕ª ┤⌡ │╤░▄┴╓╡╡╖╧ ║»░µ╡╟╛·┤┘.</p>
-
- <section>
- <title>└╠└ⁿ ╟α╡┐</title>
-
- <p>╕«┤┘└╠╖║╝╟╡╟┤┬ ╜║┼⌐╕│╞«┐í ╟Ñ┴╪ CGI ║»╝÷╡Θ└╠ │╤╛ε░ú┤┘.
- ╛ε╡≡┐í╝¡ ╕«┤┘└╠╖║╝╟└╠ └╧╛ε│╡┤┬┴÷ ╛╦ ╝÷ ╛°┤┘.</p>
- </section>
-
- <section>
- <title>╗⌡╖╬┐ε ╟α╡┐</title>
-
- <p>╕«┤┘└╠╖║╝╟╡╚ ╜║┼⌐╕│╞«┤┬ ╗⌡╖╬┐ε ╚»░µ║»╝÷╡Θ└╗ ╗τ┐δ╟╥
- ╝÷ └╓┤┘. ╕≡╡╬ ╛╒┐í <code>REDIRECT_</code>░í ║┘╛ε└╓┤┘.
- <code>REDIRECT_</code> ╚»░µ║»╝÷┤┬ ┐°╖í CGI ╚»░µ║»╝÷╕φ
- ╛╒┐í <code>REDIRECT_</code>╕ª ║┘┐⌐╝¡ ╕╕╡τ┤┘. <em>┐╣╕ª
- ╡Θ╛ε</em>, <code>HTTP_USER_AGENT</code>┤┬
- <code>REDIRECT_HTTP_USER_AGENT</code>░í ╡╟╛·┤┘. └╠╖▒ ║»╝÷┐í
- ├▀░í╖╬ ╜║┼⌐╕│╞«░í ┐°╖í URL└╗ ╛╦╡╡╖╧ ╛╞╞──í┤┬
- <code>REDIRECT_URL</code>░· <code>REDIRECT_STATUS</code>╕ª
- ┴ñ└╟╟╤┤┘. ┐°╖í URL░· ╕«┤┘└╠╖║╝╟╡╚ URL ╕≡╡╬ ┴ó▒┘ ╖╬▒╫┐í
- ▒Γ╖╧╟╥ ╝÷ └╓┤┘.</p>
-
- <p>ErrorDocument░í ░░└║ ╝¡╣÷┐í └╓┤┬ CGI ╜║┼⌐╕│╞«╖╬
- ╕«┤┘└╠╖║╝╟╟╤┤┘╕Θ, ╜║┼⌐╕│╞«┤┬ ┼¼╢≤└╠╛≡╞«┐í░╘ ┐└╖∙ ╗≤╚▓└╗
- ╚«╜╟╚≈ └ⁿ┤▐╟╧▒Γ└º╟╪ ├Γ╖┬┐í "<code>Status:</code>" ╟∞┤⌡
- ╟╩╡σ╕ª ╞≈╟╘╟╪╛▀ ╟╤┤┘. ┐╣╕ª ╡Θ╛ε, Perl╖╬ └█╝║╟╤ ErrorDocument
- ╜║┼⌐╕│╞«┤┬ ┤┘└╜░· ░░┤┘:</p>
-
- <example>
- ... <br />
- print "Content-type: text/html\n"; <br />
- printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"}; <br />
- ...
- </example>
-
- <p><code>404 Not Found</code>┐═ ░░└║ ╞»┴ñ ┐└╖∙
- ╗≤╚▓┐í ┤δ╟╤ ╜║┼⌐╕│╞«╢≤╕Θ, ┤δ╜┼ <transnote>░φ┴ñ╡╚</transnote>
- ╞»┴ñ ╗≤┼┬─┌╡σ┐═ ┐└╖∙╣«└╗ ╗τ┐δ╟╥ ╝÷ └╓┤┘.</p>
-
- <p>(┼¼╢≤└╠╛≡╞«┐í░╘ ╕«┤┘└╠╖║╝╟└╗ ┐Σ├╗╟╧▒Γ└º╟╪) └└┤Σ┐í
- <code>Location:</code> ╟∞┤⌡╕ª ╞≈╟╘╟╤┤┘╕Θ, ╜║┼⌐╕│╞«┤┬
- <em>╣▌╡σ╜├</em> (<code>302 Found</code> ░░└║) └√└²╟╤
- <code>Status:</code> ╟∞┤⌡╕ª ├Γ╖┬╟╪╛▀ ╟╘└╗ ┴╓└╟╟╧╢≤. ▒╫╖╕┴÷╛╩└╕╕Θ
- <code>Location:</code> ╟∞┤⌡░í ╛╞╣½ ╝╥┐δ╛°░╘ ╡╔ ╝÷ └╓┤┘.</p>
- </section>
- </section>
- </manualpage>
-